home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4438 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  855 b 

  1. Path: news.widomaker.com!sgross
  2. From: sgross@widomaker.com (Stephen Gross)
  3. Newsgroups: comp.lang.c
  4. Subject: question
  5. Date: 4 Feb 1996 16:52:03 GMT
  6. Organization: Widomaker Public Access Internet (804)221-8070
  7. Message-ID: <4f2o7j$l62@news2.widomaker.com>
  8. NNTP-Posting-Host: wilma.widomaker.com
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Can anybody explain in depth the process of the following code:
  12.     assuming (char *q, char *z)
  13.  
  14. ->    q = &z;      <-
  15.  
  16.     I know of course that this assign the address of z to q, BUT:
  17.     I have written code wherein the variable q is completely 
  18. unnecessary (i put it in as a watch variable), but the program functions 
  19. correctly with it, and bombs out without it. This is theoretically 
  20. impossible because q does nothing more than hold z's address. NOTHING more. 
  21. any ideas on what's going on? i'm using borland c 3.1.
  22.  
  23. thanx, sgross
  24.  
  25.